<%@page import="youleche.com.util.EscapeAndUnescapeUtil"%>
<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/WEB-INF/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>美乐车-全国最大的车辆信息交易平台</title>
<link href="${ctx}/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="${ctx}/css/pagination.css" rel="stylesheet" media="screen">
<link href="${ctx}/js/easyui/themes/default/easyui.css" rel="stylesheet"/>
<link rel="stylesheet" href="${ctx}/css/home.css"/>
<link rel="stylesheet" href="${ctx}/css/userindex.css"/>
<link rel="stylesheet" href="${ctx}/css/userVehicles.css"/>
<link href="${ctx}/js/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx}/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/js/easyui/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.cookie.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.pagination.js"></script>
<script type="text/javascript" src="${ctx}/layer/layer.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/js/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/js/umeditor/umeditor.js"></script>
<script type="text/javascript" src="${ctx}/js/umeditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="${ctx}/js/zzqy.js"></script>
</head>
<%
	Cookie[] cookies = request.getCookies();
	if(cookies == null || cookies.length == 0 ||cookies.length == 1){
		request.getRequestDispatcher("noresponse1.jsp").forward(request, response);
		return;
	}
	String userName = "";
	for(int i=0 ;i<cookies.length;i++){
		if(cookies[i].getName().equals("youleche.u")){
			String cookieVlaue = cookies[i].getValue();
			String cookieJson = EscapeAndUnescapeUtil.unescape(cookieVlaue);
			userName = cookieJson;
			break;
		}
	}
	
	if("".equals(userName)){
		request.getRequestDispatcher("noresponse1.jsp").forward(request, response);
		return;
	}
	
	boolean isSeller = PageDataForBussinessControler.isSeller(userName);

%>
<body>
	<div class="body">
		<div class="backgroundBody">
			<%@include file="utop.jsp" %>
			<%@include file="unav.jsp" %>
		</div>
		<div class="mainBody">
			<div style="width:1000px;margin-top:10px;height:800px;">
				<%
					if(isSeller){
						%><%@include file="usmenu.jsp" %><%
					}else{
						%><%@include file="uumenu.jsp" %><%
					}
				%>
				<div style="width:799px;float:left;height:auto;">
					<div style="width: 799px;">
						
						<div style="float:left;width: 739px;padding-left: 50px;margin-top: 10px;">
							<table class="table table-striped">
								<tr>
									<td style="width:60px;vertical-align:middle;color:#444;font-size:12px;">组织标题:</td>
									<td style="width:400px;">
										<input type="text" style="margin-left:10px;width:450px;border:1px solid #ccc;height:30px;font-size:14px;" id="txttitle" placeholder="请输入组织标题"/>
									</td>
								</tr>
								<tr>
									<td style="width:60px;vertical-align:middle;color:#444;font-size:12px;">骑游开始时间:</td>
									<td style="width:400px;padding-left:20px;">
									<input editable="false" required="true"  id="txtstartTime" name="input" type="text" class="easyui-datebox" data-options="formatter:myformatter,parser:myparser"/>	
									</td>
								</tr>
								<tr>
									<td style="width:60px;vertical-align:middle;color:#444;font-size:12px;">骑游耗费天数:</td>
									<td style="width:400px;">
										<input type="text" onkeyup="value=value.replace(/[^\d\.]/g,'')" style="margin-left:10px;width:100px;border:1px solid #ccc;height:30px;font-size:14px;"  id="txtdays"/>天
									</td>
								</tr>
								<tr>
									<td style="width:60px;vertical-align:middle;color:#444;font-size:12px;" colspan="2">组织内容:</td>
								</tr>
								<tr>
									
									<td id="tdnewpass" style="vertical-align:middle;" colspan="2">
										<textarea style="width:600px;height:400px;" id="txtcontent"></textarea>
										<script type="text/javascript">
										    //实例化编辑器
										    var um = UM.getEditor("txtcontent");
										</script>
									</td>
								</tr>
								<tr>
									
									<td>
									<input type="button" onclick="zzqy();" value="组织" style="color:#fff;font-size:20px;background-color:#3CAC7E;border:1px solid #ccc;width:100px;height:40px;"/></td>
									<td></td>
									<td></td>
								</tr>
							</table>
						</div>
							
					</div>
				</div>		
			</div>
			
		</div>
	</div>
	
	
	
</body>
</html>
